﻿
@{
    Layout = null;
}

<!DOCTYPE html>
<html>
<head>
    <title>保存时获取word文档中的图片</title>
    <script type="text/javascript">
        function Save() {
            var saveUrl = "/ExtractImage/SaveData";
            pageofficectrl.SaveDataPage = saveUrl;
            pageofficectrl.WebSave();
            var value = pageofficectrl.CustomSaveResult;
            alert(decodeURIComponent(value));
        }

        function OnPageOfficeCtrlInit() {
            pageofficectrl.AddCustomToolButton("保存图片", "Save", 1);
        }
    </script>

</head>
<body>
    <div id="div1" style="width: auto; height: 900px;">
        @Html.Raw(ViewBag.poCtrl)
    </div>
</body>
</html>